home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 4
/
FM Towns Free Software Collection 4 - Disc 1.iso
/
t_os
/
wstype
/
source
/
dosint.s
< prev
next >
Wrap
Text File
|
1991-10-18
|
510b
|
43 lines
/*** [dosint.s]
*
* DOS int 23/24 (C)ささがわ
*
* For GNU Assembler (GAS)
*
***/
.text
.align 2
_Errhdl:
.globl _Errhdl
pushl %ds
movb $0x24, %cl
movl $handler_24, %edx
pushl %cs
popl %ds
movw $0x2506, %ax
int $0x21
popl %ds
ret
handler_24:
movb $0x03, %al
iret
.align 2
_CtrlC_ignore:
.globl _CtrlC_ignore
pushl %ds
movb $0x23, %cl
movl $handler_23, %edx
pushl %cs
popl %ds
movw $0x2506, %ax
int $0x21
popl %ds
ret
handler_23:
iret